package org.rugby.online.impl;

import static org.junit.Assert.*;

import java.util.List;
import java.util.Locale;

import org.junit.Before;
import org.junit.Test;
import org.rugby.online.core.humans.RboNonPlayer;
import org.rugby.online.core.humans.RboProfession;
import org.rugby.online.core.humans.RboStaffTeam;
import org.rugby.online.impl.DefaultNonPlayer;
import org.rugby.online.impl.DefaultStaffTeam;

public class DefaultStaffTeamTest {

	private RboStaffTeam staff;
	
	@Before
	public void setUp() throws Exception {
		staff = new DefaultStaffTeam();
		staff.getStaff().add(new DefaultNonPlayer(RboProfession.MEDICS_MAIN, Locale.FRENCH));
	}

	@Test
	public void testGetStaff() {
		List<RboNonPlayer> staffList = staff.getStaff();
		assertNotNull(staffList);
		assertTrue(staffList.size() == 1);
	}

	@Test
	public void testGetName() {
		assertNotNull(staff.getName());
	}

	@Test
	public void testGetId() {
		assertNotNull(staff.getId());
	}

}
